﻿<Window x:Class="ContestMeter.Participants.UI.AddSolutionView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Добавление решения" Height="300" Width="500">
    <Grid Margin="20">
        <Grid.RowDefinitions>

            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            
        </Grid.RowDefinitions>

        <Label Grid.Row="0" >Файл с решением:</Label>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>

                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="140"/>
                
            </Grid.ColumnDefinitions>
            <Label Content="{Binding Solution.LocalSource}"/>
            <Button Height="25" Grid.Column="1" Margin="5" Width="120" Command="{Binding BrowseCommand}" Content="Выбрать"/>
        </Grid>
        <Label Grid.Row="2">Название задачи:</Label>
        <Label Grid.Row="3" Content="{Binding Solution.Task.Name}" />
        <Label Grid.Row="4">Компилятор (среда разработки):</Label>
        <ComboBox Grid.Row="5" Margin="0 5"
                  ItemsSource="{Binding DevTools}"
                  SelectedItem="{Binding Solution.DevTool}"
                  
                  DisplayMemberPath="Name"/>
        
        <Button Grid.Row="6" HorizontalAlignment="Center" Margin="5" Width="120" Height="25" Command="{Binding SaveCommand}">Сохранить</Button>
        
    </Grid>
</Window>
